package com.example.hbutliving.domain.dao.son;

import com.example.hbutliving.config.qiniu.QiNiuConfig;
import com.example.hbutliving.domain.dao.User;
import com.example.hbutliving.util.RandomUtil;
import java.util.Random;

public class EmailRegistUser extends User {

  public EmailRegistUser(String email,String password) {
    username = RandomUtil.getStringRandom(16);
    Random random = new Random();
    int i = random.nextInt(10)+1;
    avatar = QiNiuConfig.DEFAULT_AVATAR_DIRECTORY+i+".jpg";
    super.email = email;
    super.password =password;
  }
}
